package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionDao {

    @Select("select * from t_permission p,t_role_permission rp where rp.role_id = #{id} and rp.permission_id = p.id")
    List<Permission> findByRids(Integer roleId);

}
